package com.xlh.pojo.course;

import java.io.Serializable;
import java.util.Date;

public class Course implements Serializable {
    /**
     * 课程、用户绑定关联关系id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * 课程id
     *
     * @mbg.generated
     */
    private Long courseBasicId;

    /**
     * 制作人id 或者 授课人的id
     *
     * @mbg.generated
     */
    private Long userId;

    /**
     * 是否是自己创作的课程   1：是 0：不是
     *
     * @mbg.generated
     */
    private Boolean ownCourse;

    /**
     * 是否删除 0：未删除 1：已删除
     *
     * @mbg.generated
     */
    private Boolean deleted;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseBasicId() {
        return courseBasicId;
    }

    public void setCourseBasicId(Long courseBasicId) {
        this.courseBasicId = courseBasicId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Boolean getOwnCourse() {
        return ownCourse;
    }

    public void setOwnCourse(Boolean ownCourse) {
        this.ownCourse = ownCourse;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", courseBasicId=").append(courseBasicId);
        sb.append(", userId=").append(userId);
        sb.append(", ownCourse=").append(ownCourse);
        sb.append(", deleted=").append(deleted);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}